package app;

/********************************************************
 *
 *  Project :  TeamProject
 *  Package :  app
 *  File    :  Measurement.java
 *  Name    :  Tyler Daines
 *  Date    :  Nov 3, 2013
 *  Last Modified: Nov 4, 2013 Crystal
 *
 ********************************************************/
public enum Measurement
{

	NULL (" "),			//0
	MILLILITER ("ml"),	//1		volume
	LITER ("L"), 		//2		volume
	MILLIGRAM ("mg"), 	//3		weight
	GRAM ("g"), 		//4		weight
	KILOGRAM ("kg"),	//5		weight
	PINCH ("pinch"),	//6 	volume 1/16 tsp
	DASH ("dash"),		//7 	volume 1/8 tsp
	TEASPOON ("tsp"), 	//8		volume
	TABLESPOON ("tbsp"),//9		volume
	JIGGER ("jigger"), 	//10	volume
	CUP ("cup"), 		//11	volume
	PINT ("pt"), 		//12	volume
	QUART ("qt"), 		//13	volume
	GALLON ("gal"), 	//14	volume
	OUNCE ("oz"), 		//15	weight
	POUND ("lb"), 		//16	weight
	PECKS ("pecks"), 	//17	volume
	BUSHEL ("bsh");		//18	volume

	
	private String abbreviation;
	
	private Measurement( final String abbreviation )
	{
		this.setAbbreviation(abbreviation);
	}
	
	public String toString()
	{
		return getAbbreviation();
	}

	public String getAbbreviation() {
		return abbreviation;
	}

	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	
}

	

